//
//  ViewController.m
//  GuideViewDemo
//
//  Created by BaizYi on 2019/1/7.
//  Copyright © 2019 YJY. All rights reserved.
//

#import "ViewController.h"
#import "GuideViewManager.h"

@interface ViewController ()

@property(strong,nonatomic) UIView  *view1;
@property(strong,nonatomic) UIView  *view2;
@property(strong,nonatomic) UIView  *view3;
@property(strong,nonatomic) UIButton  *rightButton;

@end

@implementation ViewController

-(void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    [GuideViewManager showGuideViewWithTapViews:@[self.view1, self.view2, self.view3, _rightButton] tips:@[@"下一步下一步下一步下一步下一步下一步下一步下一步下一步下一步下一步", @"下一步下一步下一步下一步下一步下一步", @"下一步下一步下一步下一步下一步下一步", @"完成"]];
    //    [GuideViewManager showGuideViewWithTapViews:@[self.view1, self.view2, self.view3] tip:@[@"下一步", @"下一步", @"完成"]];
    
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    _rightButton = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, 40, 25)];
    [_rightButton setTitle:@"设置" forState:UIControlStateNormal];
    [_rightButton setTitleColor:[UIColor orangeColor] forState:UIControlStateNormal];
    UIBarButtonItem *rightItem = [[UIBarButtonItem alloc]initWithCustomView:_rightButton];
    self.navigationItem.rightBarButtonItem = rightItem;
    
    
    CGFloat screenWidth = [UIScreen mainScreen].bounds.size.width;
    
    UIView *view1 = [[UIView alloc]initWithFrame:CGRectMake(30, 200, 40, 40)];
    view1.backgroundColor = [UIColor orangeColor];
    [self.view addSubview:view1];
    
    UIView *view2 = [[UIView alloc]initWithFrame:CGRectMake(200, 200, 40, 40)];
    view2.backgroundColor = [UIColor orangeColor];
    [self.view addSubview:view2];
    
    UIView *view3 = [[UIView alloc]initWithFrame:CGRectMake(screenWidth - 60, 350, 40, 40)];
    view3.backgroundColor = [UIColor orangeColor];
    [self.view addSubview:view3];
    
    self.view1 = view1;
    self.view2 = view2;
    self.view3 = view3;
    
    
    
    
    
    
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
